import type {
    T_Xme_NetworkHostConfig_Unresolved,
} from '@xinmier/lei-xing--tong-yong'

const {
    hostname: nameOrIp,
} = window.location

export const apiServer:       null | T_Xme_NetworkHostConfig_Unresolved<'http:'> = {
    protocol: 'http:',
    nameOrIp: nameOrIp,
    port: 3333,
}
export const webSocketServer: null | T_Xme_NetworkHostConfig_Unresolved<'ws:'>   = {
    protocol: 'ws:',
    nameOrIp: nameOrIp,
    port: 3333,
}

export const mqttServer: null | T_Xme_NetworkHostConfig_Unresolved<'ws:'>   = null